/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "工件",TableName = "upper_workpiece")]
    public partial class upper_workpiece:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///模具名称
       /// </summary>
       [Display(Name ="模具名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string workpiece_name { get; set; }

       /// <summary>
       ///工件型号
       /// </summary>
       [Display(Name ="工件型号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string workpiece_type { get; set; }

       /// <summary>
       ///工件长度
       /// </summary>
       [Display(Name ="工件长度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? workpiece_length { get; set; }

       /// <summary>
       ///工件宽度
       /// </summary>
       [Display(Name ="工件宽度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? workpiece_width { get; set; }

       /// <summary>
       ///工件高度
       /// </summary>
       [Display(Name ="工件高度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? workpiece_height { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="create_time")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? create_time { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="update_time")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? update_time { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="is_delete")]
       [Column(TypeName="bool")]
       [Editable(true)]
       public bool? is_delete { get; set; }

       /// <summary>
       ///加工机床
       /// </summary>
       [Display(Name ="加工机床")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int machine { get; set; }

       /// <summary>
       ///材质
       /// </summary>
       [Display(Name ="材质")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string material { get; set; }

       /// <summary>
       ///目标精度
       /// </summary>
       [Display(Name ="目标精度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? target_accuracy { get; set; }

       /// <summary>
       ///预设中心点x距离
       /// </summary>
       [Display(Name ="预设中心点x距离")]
       [Column(TypeName="double")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal x_instance { get; set; }

       /// <summary>
       ///预设中心点y距离
       /// </summary>
       [Display(Name ="预设中心点y距离")]
       [Column(TypeName="double")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal y_instance { get; set; }

       /// <summary>
       ///预设中心点z距离
       /// </summary>
       [Display(Name ="预设中心点z距离")]
       [Column(TypeName="double")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal z_instance { get; set; }

       
    }
}